package com.smooth.common.pc.enums;

public enum LoginType {
	student(1, "学生"),
	company(2, "企业"),
	;

	public Integer value;
	public String name;

	LoginType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static LoginType getStatus(Integer value) {
		if (value != null) {
			LoginType[] otypes = LoginType.values();
			for (LoginType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
